#ifndef LOGIN_H
#define LOGIN_H

#include <QMainWindow>
#include <QKeyEvent>
#include "registerface.h"
#include "manage_login.h"

namespace Ui {
class Login;
}

class Login : public QMainWindow
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = nullptr);
    ~Login();

protected:
    void keyPressEvent(QKeyEvent *event);

    void keyReleaseEvent(QKeyEvent *event);

private slots:
    /* 点击登录按钮 */
    void on_loginBtn_clicked();

    /* 点击注册按钮 */
    void on_registerBtn_clicked();

    /* 注册页面关闭 */
    void registerfaceClose();

    /* 管理员登录页面关闭 */
    void manageLoginClose();

private:
    Ui::Login *ui;

    registerface * newregisterface;

    manage_Login * newLogin;

    bool escPressed = false;

    bool upPressed = false;
};

#endif // LOGIN_H
